<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" >

<title>Java开发环境搭建 | 羊鱼串的博客</title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="shortcut icon" href="https://sheepfishzhuo.github.io/favicon.ico?v=1595373624353">
<link rel="stylesheet" href="https://sheepfishzhuo.github.io/styles/main.css">



<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>



    <meta name="description" content="一、JDK的安装和配置

下载：官网：https://www.oracle.com/java/technologies/javase-jdk14-downloads.html（以jdk14.0.2为例）

​         选择下面红框内..." />
    <meta name="keywords" content="" />
  </head>
  <body>
    <div id="app" class="main">

      <div class="sidebar" :class="{ 'full-height': menuVisible }">
  <div class="top-container" data-aos="fade-right">
    <div class="top-header-container">
      <a class="site-title-container" href="https://sheepfishzhuo.github.io">
        <img src="https://sheepfishzhuo.github.io/images/avatar.png?v=1595373624353" class="site-logo">
        <h1 class="site-title">羊鱼串的博客</h1>
      </a>
      <div class="menu-btn" @click="menuVisible = !menuVisible">
        <div class="line"></div>
      </div>
    </div>
    <div>
      
        
          <a href="https://sheepfishzhuo.github.io/post/java-kai-fa-huan-jing-da-jian" class="site-nav" target="_blank">
            首页
          </a>
        
      
        
          <a href="/archives" class="site-nav">
            归档
          </a>
        
      
        
          <a href="/tags" class="site-nav">
            标签
          </a>
        
      
        
          <a href="/post/about" class="site-nav">
            关于
          </a>
        
      
    </div>
  </div>
  <div class="bottom-container" data-aos="flip-up" data-aos-offset="0">
    <div class="social-container">
      
        
      
        
      
        
      
        
      
        
      
    </div>
    <div class="site-description">
      梦想从学习开始，事业从实践起步。
    </div>
    <div class="site-footer">
      Powered by <a href="http://jy20968188.icoc.vc/col.jsp?id=112" target="_blank">养鱼捉（卓卓小学徒）</a> | <a class="rss" href="https://sheepfishzhuo.github.io/atom.xml" target="_blank">RSS</a>
    </div>
  </div>
</div>


      <div class="main-container">
        <div class="content-container" data-aos="fade-up">
          <div class="post-detail">
            <h2 class="post-title">Java开发环境搭建</h2>
            <div class="post-date">2020-07-21</div>
            
            <div class="post-content" v-pre>
              <p>一、JDK的安装和配置</p>
<ol>
<li>下载：官网：https://www.oracle.com/java/technologies/javase-jdk14-downloads.html（以jdk14.0.2为例）</li>
</ol>
<p>​         选择下面红框内的下载即可。![批注 2020-07-19 192830](C:\Users\26786\Desktop\Java-md -picture\批注 2020-07-19 192830.jpg)</p>
<ol start="2">
<li>安装：一直点击下一步，最后点击关闭。</li>
<li>配置环境变量：进入我的电脑，右键点击空白处，选择属性，点击左侧的高级系统设置，依次点击高级--&gt;环境变量，修改下方名为Path的系统变量，变量值改为所安装的jdk的bin文件夹所在的目录（例如：C:\Program Files\Java\jdk-14.0.2\bin），然后点击三次确定即可完成配置。</li>
<li>测试：键盘上按“windows”+&quot;R&quot;键，打开运行，输入cmd并点击确定，进入命令行，输入Java -version，若显示所安装java的版本号即证明配置环境变量成功。</li>
</ol>
<h2 id="二-intellij-idea的安装和配置">二、IntelliJ IDEA的安装和配置</h2>
<ol>
<li>
<p>下载：官网：https://www.jetbrains.com/idea/download/,选择右侧的社区版本即可。（社区版开源，刚入门不需要Ultimate版）</p>
<p>选择下面红框内的下载即可。</p>
<p>![批注 2020-07-19 195849](C:\Users\26786\Desktop\Java-md -picture\批注 2020-07-19 195849.jpg)</p>
</li>
<li>
<p>安装：一直点击next，中间点击install，最后点击finish</p>
</li>
<li>
<p>配置（第一次使用要初始化）：（略）</p>
</li>
</ol>
<h2 id="三-运行一个简单的java程序">三、运行一个简单的Java程序</h2>
<p><strong>以输出“我的第一个Java程序”为例</strong></p>
<h3 id="1-用intellij-idea运行">1. 用IntelliJ IDEA运行</h3>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720124631.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720124753.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720124914.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720124926.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720125330.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720125418.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720125601.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720125617.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720125743.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720125857.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720130656.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720130717.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720130742.jpg)</p>
<h3 id="2-用windows命令行运行">2. 用windows命令行运行</h3>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720144139.jpg)</p>
<p>![](C:\Users\26786\Desktop\Java-md -picture\20200720152545.jpg)</p>

            </div>
            
            
              <div class="next-post">
                <div class="next">下一篇</div>
                <a href="https://sheepfishzhuo.github.io/post/hello-gridea/">
                  <h3 class="post-title">
                    Hello Gridea
                  </h3>
                </a>
              </div>
            

            

          </div>

        </div>
      </div>
    </div>

    <script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script type="application/javascript">

AOS.init();

var app = new Vue({
  el: '#app',
  data: {
    menuVisible: false,
  },
})

</script>






  </body>
</html>
